import request from '../utils/request'

export function createEnroll(enroll) {
  return request({
    url: '/enroll/createEnroll',
    method: 'post',
    data: enroll
  })
}

export function createEnrollExamine(enroll) {
  return request({
    url: '/enroll/createEnrollExamine',
    method: 'post',
    data: enroll
  })
}

export function listExamine(params) {
  return request({
    url: '/enroll/ExamineList',
    method: 'get',
    params
  })
}
export function getOneEnroll(fileName) {
  return request({
    url: '/enroll/getOneEnroll',
    method: 'get',
    params: { fileName }
  })
}
export function getOneExamine(fileName) {
  return request({
    url: '/enroll/getOneExamine',
    method: 'get',
    params: { fileName }
  })
}
export function updateEnroll(enroll) {
  return request({
    url: '/enroll/updateEnroll',
    method: 'post',
    data: enroll
  })
}
export function updateEnroll1(enroll) {
  return request({
    url: '/enroll/updateEnroll1',
    method: 'post',
    data: enroll
  })
}

export function getEnroll(fileName) {
  return request({
    url: '/enroll/EnrollList',
    method: 'get',
    params: { fileName }
  })
}

export function listEnroll(params) {
  return request({
    url: '/enroll/EnrollList',
    method: 'get',
    params
  })
}

export function listUserEnroll(params) {
  return request({
    url: '/enroll/UserEnrollList',
    method: 'get',
    params
  })
}

export function listExamineEnroll(params) {
  return request({
    url: '/enroll/listExamineEnroll',
    method: 'get',
    params
  })
}

export function deleteEnroll(id) {
  return request({
    url: '/enroll/deleteEnroll',
    method: 'get',
    params: { id }
  })
}

